Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
posix: Fix posix_spawn implict check style
This patch fixes the implicit check style add in 2a69f85 for the
general convention one.

Checked on x86_64.

	* sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
	style.
  • Loading branch information
Adhemerval Zanella committed Mar 21, 2016
1 parent 893e371 commit 67b2337
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2016-03-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>

* sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
style.

2016-03-21 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/unix/sysv/linux/x86_64/cancellation.S
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/spawni.c
Expand Up @@ -381,7 +381,7 @@ __spawnix (pid_t * pid, const char *file,

close_not_cancel (args.pipe[0]);

if (!ec && pid)
if ((ec == 0) && (pid != NULL))
*pid = new_pid;

__sigprocmask (SIG_SETMASK, &args.oldmask, 0);
Expand Down

0 comments on commit 67b2337

Please sign in to comment.