Tcl Source Code

Check-in [ba2d367156]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Additional mutex locking/unlocking during fork() to keep things synchronized.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | experimental
Files: files | file ages | folders
SHA1: ba2d367156814abcf134428ab73f0a576e982f5b
User & Date: mistachkin 2015-05-21 17:58:49
Original Comment: Additional mutex locking/unlocking during fork() to keep things synchronoized.
Context
2015-05-27
22:29
Make sure the master and mutex locks are in a well-known state across the fork() call. check-in: c69cf62a8e user: mistachkin tags: experimental
2015-05-21
17:58
Additional mutex locking/unlocking during fork() to keep things synchronized. check-in: ba2d367156 user: mistachkin tags: experimental
2015-05-20
13:45
Don't change autoconf version by accident. check-in: 2e6cee666e user: dgp tags: bug-57945b574a
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to unix/tclUnixNotfy.c.

1330
1331
1332
1333
1334
1335
1336

1337
1338
1339
1340
1341
1342
1343
 *
 *----------------------------------------------------------------------
 */

static void
AtForkPrepare(void)
{

}

/*
 *----------------------------------------------------------------------
 *
 * AtForkParent --
 *







>







1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
 *
 *----------------------------------------------------------------------
 */

static void
AtForkPrepare(void)
{
    Tcl_MutexLock(&notifierMutex);
}

/*
 *----------------------------------------------------------------------
 *
 * AtForkParent --
 *
1351
1352
1353
1354
1355
1356
1357

1358
1359
1360
1361
1362
1363
1364
 *
 *----------------------------------------------------------------------
 */

static void
AtForkParent(void)
{

}

/*
 *----------------------------------------------------------------------
 *
 * AtForkChild --
 *







>







1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
 *
 *----------------------------------------------------------------------
 */

static void
AtForkParent(void)
{
    Tcl_MutexUnlock(&notifierMutex);
}

/*
 *----------------------------------------------------------------------
 *
 * AtForkChild --
 *