From kirill.mueller at ivt.baug.ethz.ch  Fri Mar 14 13:09:10 2014
From: kirill.mueller at ivt.baug.ethz.ch (=?ISO-8859-1?Q?Kirill_M=FCller?=)
Date: Fri, 14 Mar 2014 13:09:10 +0100
Subject: [Rd] Detect a terminated pipe
Message-ID: <5322F166.30706@ivt.baug.ethz.ch>

Hi

Is there a way to detect that the process that corresponds to a pipe has 
ended? On my system (Ubuntu 13.04), I see

 > p <- pipe("true", "w"); Sys.sleep(1); system("ps -elf | grep true | 
grep -v grep"); isOpen(p)
[1] TRUE

The "true" process has long ended (as the filtered ps system call emits 
no output), still R believes that the pipe p is open.

Thanks for your input.


Best regards

Kirill



[Rd] Detect a terminated pipe
=?ISO-8859-1?Q?Kirill_M=FCller?=