home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6375 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!hsr.no!fics!kro
  3. From: kro@kvamdata.no (Knut Rogde)
  4. Subject: fcntl
  5. Organization: Kvam data as
  6. Date: Thu, 12 Nov 1992 16:24:15 GMT
  7. Message-ID: <1992Nov12.162415.18503@kvamdata.no>
  8. Lines: 21
  9.  
  10. Hi, I've tried this question on comp.os.os2.networking without success,
  11.     so I thought I'd try it here...
  12.  
  13. I'm porting a client-server application to IBM's TCPIP for OS2.
  14.  
  15. I need to be able to set a close-on-exec flag on the sockets I open, because
  16. the server is supposed to start new processes (which should not inherit
  17. any descriptors).
  18.  
  19. On the UNIX-port I can use fcntl() to set this flag, but this can't be 
  20. done in IBM's implementation (I believe) because sockets and filedesriptors
  21. do not come from the same domain.
  22.  
  23. I would be grateful for any ideas...
  24.  
  25. Knut
  26. -- 
  27. ------------------------------------------------------------------------
  28. Knut Rogde                      Phone : +47 4 623766
  29. Software engineer               Fax   : +47 4 623985
  30. Kvam data as                    Email : kro@kvamdata.no
  31.