#exult@irc.freenode.net logs for 10 Mar 2004 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:01:12] <-- Kirben2 has left IRC (Read error: 110 (Connection timed out))
[01:28:45] --> servus has joined #exult
[02:41:21] <-- Cahaan has left IRC (Read error: 110 (Connection timed out))
[02:41:32] <-- Kirben has left IRC ("System Meltdown")
[02:54:14] --> SB-X has joined #exult
[03:00:07] * SB-X throws a de-idle bomb at Darke.
[03:02:30] --> Kirben has joined #exult
[03:02:30] --- ChanServ gives channel operator status to Kirben
[03:07:37] --> Sheng_Gradilla has joined #exult
[03:07:41] <Sheng_Gradilla> good evening :)
[03:21:00] <SB-X> hello
[03:22:49] --> Kabalx has joined #exult
[03:34:43] <-- Kabalx has left IRC ()
[04:29:42] --> Kabalx has joined #exult
[04:30:15] --- Kabalx is now known as Cahaan
[04:58:53] <-- Kirben has left IRC (Read error: 54 (Connection reset by peer))
[05:00:27] --> Kirben has joined #exult
[05:00:27] --- ChanServ gives channel operator status to Kirben
[05:08:58] <-- Cahaan has left IRC ()
[05:15:09] --> Kabalx has joined #exult
[05:15:17] --- Kabalx is now known as Cahaan
[07:12:21] <-- Sheng_Gradilla has left IRC ("Terminando cliente")
[07:20:35] <-- SB-X has left IRC (Read error: 60 (Operation timed out))
[07:40:49] <-- Cahaan has left IRC ()
[08:43:24] --> SB-X has joined #exult
[11:02:42] <-- SB-X has left IRC ()
[12:37:20] <-- Kirben has left IRC ("System Meltdown")
[13:56:42] --> Colourless has joined #Exult
[13:56:47] --- ChanServ gives channel operator status to Colourless
[13:56:55] <Colourless> hi
[14:19:40] <wjp> hi
[14:21:07] <Colourless> amazing! 23 minutes
[14:34:25] --> Andersen has joined #exult
[18:42:31] <-- servus has left IRC (Read error: 104 (Connection reset by peer))
[18:42:35] --> servus_ has joined #exult
[19:26:08] --> SorcererX has joined #exult
[19:46:18] <-- Colourless has left IRC ("casts invisibility")
[21:19:41] --> Kirben has joined #exult
[21:19:41] --- ChanServ gives channel operator status to Kirben
[22:08:08] <-- Andersen has left IRC ("FUTUE TE ET IPSUM CABALLUM")
[23:09:46] --> Fingolfin has joined #exult
[23:09:46] --- ChanServ gives channel operator status to Fingolfin
[23:23:39] <wjp> hi Fingolfin
[23:25:07] <Fingolfin> hi
[23:26:01] <wjp> how familiar are you with unix pipes (popen and such) ?
[23:27:13] <wjp> really weird problem with xdm... it forks a process using popen, then uses fgets to read the output through the pipe
[23:27:39] <wjp> xdm hangs at that point, with the forked process defunct
[23:27:54] <wjp> and I don't really understand how it could end up in that situation :-)
[23:29:10] <Fingolfin> hum
[23:29:24] <Fingolfin> fgets would wait until it is able to read a newline, wouldn't it?
[23:29:30] <wjp> yes
[23:29:52] <Fingolfin> (which BTW can lead to major issues when doing this stuff with Java, when line end conversion has to be done <g>, but I disgress)
[23:29:54] <wjp> would it really keep waiting on a broken pipe?
[23:30:12] <Fingolfin> wouldn't surprise me if it did =) but is the pipe really broken?
[23:30:26] <wjp> hm, a defunct process can't have any fd's open
[23:30:44] <wjp> (I think?)
[23:31:05] <wjp> I guess I should write some small test programs to see what happens
[23:35:14] <wjp> if the forked process is a simple int main() { return 0; }, and I sleep a while before the fgets, it works as expected
[23:35:48] <wjp> (fgets returns 0, which it should for EOF)
[23:35:56] <Fingolfin> oh it's really defunct, ok, I thought you meant it was hanging, too
[23:36:00] <Fingolfin> yup
[23:36:04] <Fingolfin> strange, this..
[23:36:13] <Fingolfin> sorry no valuable insight from my side
[23:36:41] <wjp> I currently freed it from its hanging state by doing a 'return' from gdb :-)
[23:37:00] <wjp> (which was the only way I could think of to get out of that fgets)
[23:37:44] <wjp> hm, wait a sec
[23:38:09] <wjp> it's not just doing a fgets; it's doing a "while(!(s = fgets(statusBuf, 256, fd)) && errno == EINTR);"
[23:38:31] <wjp> does errno get set if there is no error?
[23:38:43] <wjp> if not, it would hang if errno was still set to EINTR from a previous error
[23:38:55] <wjp> s/hang/loop/
[23:43:45] <-- Fingolfin has left IRC ("42")