Fix problem with initialization of file actions
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5508 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
87eac55c6b
commit
90c4f1abc1
@ -304,6 +304,8 @@ int spawn_main(int argc, char *argv[])
|
||||
err("ERROR: posix_spawnattr_init failed: %d\n", ret);
|
||||
}
|
||||
|
||||
mm_update(&g_mmstep, "after file_action/attr init");
|
||||
|
||||
/* Set up to close stdin (0) and open testdata.txt as the program input */
|
||||
|
||||
ret = posix_spawn_file_actions_addclose(&file_actions, 0);
|
||||
@ -319,6 +321,8 @@ int spawn_main(int argc, char *argv[])
|
||||
err("ERROR: posix_spawn_file_actions_addopen failed: %d\n", ret);
|
||||
}
|
||||
|
||||
mm_update(&g_mmstep, "after adding file_actions");
|
||||
|
||||
/* If the binary loader does not support the PATH variable, then
|
||||
* create the full path to the executable program. Otherwise,
|
||||
* use the relative path so that the binary loader will have to
|
||||
|
Loading…
Reference in New Issue
Block a user