Re: [PATCH] DejaGnu kills the wrong process due to PID-reuse races

Andreas Schwab <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
Pedro Alves <[email protected]> writes:

> +	# Prepend "-" to generate the "process group ID" needed by
> +	# kill.
> +	set pgid "-[join $pid { -}]"

That's an odd way to write [expr -$pid].

Andreas.

-- 
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.