Hello!
I'm having issues with pipe() and fork() making a 2 way pipe.
The attached pastebin is somewhat far down in the function, and seemingly nothing happens when its run. The "done" puts() command isn't run either, it just returns with no error code. Any help?
https://pastebin.com/KBnWKN9F
Re: issues with pipe/fork
By: candycane to All on Wed Aug 02 2023 08:08 pm
Hello!
I'm having issues with pipe() and fork() making a 2 way pipe.
The attached pastebin is somewhat far down in the function, and
seemingly nothing happens when its run. The "done" puts() command
isn't run either, it just returns with no error code. Any help?
https://pastebin.com/KBnWKN9F
In Synchronet, the source for the pipe/fork logic is in xtrn.cpp -> sbbs_t::external() (for *nix). Take a look at that for a working example.
You haven't really described what you're trying to (what's the *goal* of your pipe and fork?).
--
digital man (rob)
Sling Blade quote #5:
Karl Childers (to father): You ought not killed my little brother... Norco, CA WX: 78.2øF, 48.0% humidity, 4 mph E wind, 0.00 inches rain/24hrs ---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
Sysop: | Scottrudy |
---|---|
Location: | Fremont, CA |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 145:26:01 |
Calls: | 39 |
Messages: | 21,384 |