This is the mail archive of the cygwin-developers@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

small problem with exec


Hi!

  exec()  inherits open file handles, and some of them can possibly be
sockets.  cygwin  has  global  variable  to  track  the number of open
sockets    (number_of_sockets)   which   increments   when  socket  is
created  and  decrements  when  socket  gets  freed.  after  fork this
variable is initialized properly, but after exec it is 0. when exec'ed
process closes socket, cygwin prints "socket count < 0" warning.

should number_of_sockets be eliminated or passed in child_info_spawn?

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]