[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Subshell process groups
From: |
Gregory Borota |
Subject: |
Subshell process groups |
Date: |
Sun, 14 Mar 2004 18:41:18 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 |
From: greg
To: bug-bash@gnu.org
Subject: Subshell process groups
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: cygwin
Compiler: i686-pc-cygwin-gcc
Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -DRECYCLES_PIDS -I.
-I/home/RLandheer/cygwin-contrib/bash/2.05b-16/bash-2.05b
-I/home/RLandheer/cygwin-contrib/bash/2.05b-16/bash-2.05b/include
-I/home/RLandheer/cygwin-contrib/bash/2.05b-16/bash-2.05b/lib -O2
uname output: CYGWIN_NT-5.1 lap 1.5.7(0.109/3/2) 2004-01-30 19:32 i686
unknown unknown Cygwin
Machine Type: i686-pc-cygwin
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
#!/bin/bash
(
# sleep 1 # or whatever slower commmand!
set -m;
sleep 10 & # or whatever command that takes time to complete
set +m;
pid=$!
( sleep 1; kill -- -$pid ) &
wait $pid
)
# without the first line commented you get:
# ./bug.sh: line 8: kill: (-760) - No such process
# otherwise things work as expected
# ./bug.sh: line 10: 492 Terminated sleep 10
Repeat-By:
$ ./bug.sh
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Subshell process groups,
Gregory Borota <=