Re: macros: return or exit



"MG" == Marc Girod <marc.girod@xxxxxxxxx> writes:

MG> On Jan 21, 6:41 pm, "Uri Guttman" <u...@xxxxxxxxxxxxxxx> wrote:
>> it is irrelevant about which binary. the issue is how do you manage its
>> i/o via its stdio. that is the same problem for any binary subprocess
>> you want to run with its stdio. now you never answered the question
>> about which select function you meant.

MG> The C function that the cleartool binary does not use.

MG> I was not saying my code doing select in any way. I meant its *not*
MG> doing select.
MG> It may be me who do not understand...
MG> If I fork part of my script, there will be two instances sharing the
MG> same background process.
MG> I cannot see this work.

MG> Does it make better sense now?

not at all. when you fork, why not pass some flag to tell one of the
procs not to deal with the background process? in the other process,
close off the handles to that background process.

uri

--
Uri Guttman ------ uri@xxxxxxxxxxxxxxx -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
.



Relevant Pages

  • Re: macros: return or exit
    ... >> close off the handles to that background process. ... fork of it and manage its i/o in an event loop in the parent? ... design isn't good enough explain why you need a more complex ...
    (comp.lang.perl.misc)
  • Re: macros: return or exit
    ... i/o via its stdio. ... that is the same problem for any binary subprocess ... you want to run with its stdio. ... same background process. ...
    (comp.lang.perl.misc)
  • Re: Problems reclaiming VM cache = XFree86 startup annoyance
    ... => significant reduction in swap I/O performance and/or be causing page ... => waiting for a memory allocation, which implies an I/O performance issue. ... The I/O-hogging background process is probably the btlaunchmany.py I ... run to serve several large filesets via BitTorrent. ...
    (freebsd-stable)
  • Difference between daemon and background process
    ... Difference between daemon and background process? ... you can create a daemon you just call fork and ... exit the parrent. ...
    (comp.os.linux.development.apps)