Re: signal is not delivered to the handler

2006-02-05 Thread Christopher Faylor
On Mon, Feb 06, 2006 at 02:34:15AM +, Michael Tang wrote: >I ran into a problem with the latest cygwin1.dll (1.5.19-cr-0x5ef): > 1. the main thread creates a udp socket and set up a sigal handler for >SIGALRM > 2. the main thread creates a new thread T > 3. the main thread calls "recvfrom" on

signal is not delivered to the handler

2006-02-05 Thread Michael Tang
I ran into a problem with the latest cygwin1.dll (1.5.19-cr-0x5ef): 1. the main thread creates a udp socket and set up a sigal handler for SIGALRM 2. the main thread creates a new thread T 3. the main thread calls "recvfrom" on the udp socket" and block there 4. thread T waits 2 second and s

Re: _kbhit & memory leak in select()

2006-02-05 Thread Christopher Faylor
On Sun, Feb 05, 2006 at 01:17:33PM -0500, Michiel De Hoon wrote: >For one of my software projects, I need the _kbhit function to check the >console for keyboard input. While this function is present in msvcrt.dll, it >is missing from cygwin1.dll, so I started writing this function myself (I'm >hopi

Re: _kbhit & memory leak in select()

2006-02-05 Thread Corinna Vinschen
On Feb 5 13:17, Michiel De Hoon wrote: > 1) Where is the select_record deleted? The select_stuff variable sel will be > gone after we exit cygwin_select, and with it the pointer to the > select_record we allocated in select_read. In the select_stuff destructor. Corinna -- Corinna Vinschen

_kbhit & memory leak in select()

2006-02-05 Thread Michiel De Hoon
Hi everybody, For one of my software projects, I need the _kbhit function to check the console for keyboard input. While this function is present in msvcrt.dll, it is missing from cygwin1.dll, so I started writing this function myself (I'm hoping to contribute it to Cygwin if it works well). Howe

Re: Chinese file names are displayed as '??' when 'ls'

2006-02-05 Thread Thorsten Kampe
* LiuYan (2006-02-03 15:46 +0100) > Hi all: > > When I using 'ls' to list the files in a directory, the chinese file names > are > becomes '??'. > > But, when I press TAB after I typed 'ls', the Chinese file names are > displayed > correctly. > > Sample outputs: > --

[ANNOUNCEMENT] Updated: sed-4.1.5-1

2006-02-05 Thread Corinna Vinschen
I've updated the version of sed to 4.1.5-1. This is the latest stable sed release 4.1.5. Changes since 4.1.4: * fix parsing of a negative character class not including a closed bracket, like [^]] or [^]a-z]. * fix parsing of [ inside an y command, like y/[/A/. * output the result of commands

Re: sed

2006-02-05 Thread Corinna Vinschen
On Feb 4 19:58, Rokas Masiulis wrote: > Hi, > > i can't force to work sed in true binary mode: > > this is test case: > > $ echo -en '\r\n' | sed -e '' | od -t x1 > 000 0a > 001 > > but expected result is: > $ echo -en '\r\n' | od -t x1 > 000 0d 0a > 002 I've uploaded a new se

Re: readdir after rewinddir not working in 20060128 snapshot

2006-02-05 Thread Corinna Vinschen
On Feb 4 21:20, Yitzchak Scott-Thoennes wrote: > On Mon, Jan 30, 2006 at 11:39:48AM +0100, Corinna Vinschen wrote: > > On Jan 30 00:29, Yitzchak Scott-Thoennes wrote: > > > After a rewinddir, readdir seems to return as many empty entries as there > > > were actual entries left to read, followed by