[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [feature request] setpgid and setsid builtins
From: |
Chet Ramey |
Subject: |
Re: [feature request] setpgid and setsid builtins |
Date: |
Tue, 16 Apr 2002 12:00:45 -0400 |
> > > exec_with_timeout () {
>
> > This code works for me without setpgid.
>
> Only if you call it directly from a login shell in monitor mode. In
> this case the two background processes are effectively put in a
> separate process group. This will not be the case otherwise, and you
> will not be able to kill eventual child processes.
If that's the only criterion, why don't you just turn on job control in
your script with `set -o monitor'? It does the same thing.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/