* pipe.cc (fhandler_pipe::create_selectable): Add -pipe to default pipe names.

* lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Use bool/true/false for
what is actually a boolean variable.
This commit is contained in:
Christopher Faylor
2009-08-17 12:45:51 +00:00
parent de856c4402
commit 28c054b720
3 changed files with 11 additions and 4 deletions

View File

@@ -228,7 +228,7 @@ fhandler_pipe::create_selectable (LPSECURITY_ATTRIBUTES sa_ptr, HANDLE& r,
{
static volatile ULONG pipe_unique_id;
if (!name)
__small_sprintf (pipename + strlen(PIPE_INTRO), "%p-%p", myself->pid,
__small_sprintf (pipename + strlen(PIPE_INTRO), "pipe-%p-%p", myself->pid,
InterlockedIncrement ((LONG *) &pipe_unique_id));
else
strcpy (pipename + strlen(PIPE_INTRO), name);