diff options
author | Steve Peters <steve@fisharerojo.org> | 2008-12-02 05:10:09 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2008-12-02 05:10:09 +0000 |
commit | c4cd47ac59d76a2228d65807ac3ac3a0ef9ed7c7 (patch) | |
tree | eb6109c26be78b5ad0e9f70151b7b711979bfd86 /pod/perlipc.pod | |
parent | 3c20a832e0afaa3d5dac4e9889c4ce2f06a128c5 (diff) | |
download | perl-c4cd47ac59d76a2228d65807ac3ac3a0ef9ed7c7.tar.gz |
setsid() returns -1 on failure.
p4raw-id: //depot/perl@34976
Diffstat (limited to 'pod/perlipc.pod')
-rw-r--r-- | pod/perlipc.pod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perlipc.pod b/pod/perlipc.pod index 3e916a07af..de6ba581e6 100644 --- a/pod/perlipc.pod +++ b/pod/perlipc.pod @@ -536,7 +536,7 @@ output doesn't wind up on the user's terminal). or die "Can't write to /dev/null: $!"; defined(my $pid = fork) or die "Can't fork: $!"; exit if $pid; - setsid or die "Can't start a new session: $!"; + die "Can't start a new session: $!" if setsid == -1; open STDERR, '>&STDOUT' or die "Can't dup stdout: $!"; } |