Search Results

Search: Posts Made By: Rahul619
4,142
Posted By Don Cragun
Not exactly. If I run the bash script (from a...
Not exactly. If I run the bash script (from a file named nonzero):
#!/bin/bash
(sleep 5;exit 2)&
pid=$!
(sleep 10;exit 1)
echo "return code from synchronous child $?"
wait $pid
echo "return...
5,444
Posted By Don Cragun
No. The exit status of wait (when given one or...
No. The exit status of wait (when given one or more pid operands) will be the exit status of the process with the PID matching the last operand given to wait. However, if you invoke wait with no...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy