JFilesystem: Allow getting CTTY of any given pid.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1932 ba6dc0ae-232f-0410-883f-9ebac64fc565
PTY: Enable Ckpt/Rst of fd bound to CTTY of parent process.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1933 ba6dc0ae-232f-0410-883f-9ebac64fc565
Suppress compiler warning for polluting symbols.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1935 ba6dc0ae-232f-0410-883f-9ebac64fc565
Add missing include file to dmtcp_checkpoint.cpp.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1936 ba6dc0ae-232f-0410-883f-9ebac64fc565
Disable popen1 test.

- popen1 forks child processes which are not accounted in autotest.
  Disabling it until autotest is fixed.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1937 ba6dc0ae-232f-0410-883f-9ebac64fc565
Added JASSERT_CLOSE_STDERR

- To allow dmtcp_coordinator to disable JNOTEs etc when running in
  background or in batch mode.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1938 ba6dc0ae-232f-0410-883f-9ebac64fc565
Remove JASSERT_SET_LOGFILE (not used by anyone).

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1939 ba6dc0ae-232f-0410-883f-9ebac64fc565
Remove some stale comments.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1940 ba6dc0ae-232f-0410-883f-9ebac64fc565
Do no ASSERT if setsid() fails on restart.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1941 ba6dc0ae-232f-0410-883f-9ebac64fc565
Remove JASSERT_SET_CONSOLE_FD and add JLOG.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1942 ba6dc0ae-232f-0410-883f-9ebac64fc565
JALIB: Handle updated stderr device on restart

Fix "cannot open output channel ..." warning msg.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1943 ba6dc0ae-232f-0410-883f-9ebac64fc565
Update parent-pid on restart.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1944 ba6dc0ae-232f-0410-883f-9ebac64fc565
- dmtcp/src/plugin-tutorial.tex added


git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1945 ba6dc0ae-232f-0410-883f-9ebac64fc565
Wrappers in syscall() added for SYS_signalfd and SYS_eventfd.


git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1946 ba6dc0ae-232f-0410-883f-9ebac64fc565
PTY: Bug fix for CTTY in multiple process trees.

It is possible to have two different connection-ids for a pre-existing
CTTY in two or more different process trees. In this case, only one of
the several process trees would be able to acquire a lock on the
underlying fd.  The send-receive fd logic fails in this case due to
different connection-ids.  Therefore, we let every process do a
postRestart to reopen the CTTY.

TODO: A better fix would be to have a unique connection-id for each
pre-existing CTTY that is then used by all process trees.  It can be
implemented by using the SharedData area.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1947 ba6dc0ae-232f-0410-883f-9ebac64fc565
MTCP: Restore shared mem files with 0600 permissions.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1948 ba6dc0ae-232f-0410-883f-9ebac64fc565
JALIB/JASSERT: Init JASSERT during JALIB initialization.

- Created a separate JASSERT_SET_LOG macro which is called from
  Util::initializeLofFile()

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1949 ba6dc0ae-232f-0410-883f-9ebac64fc565
mtcp_restart: Ignore filename if --fd is provided.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1950 ba6dc0ae-232f-0410-883f-9ebac64fc565
MTCP: Allow DMTCP to write header in the ckpt-image.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1951 ba6dc0ae-232f-0410-883f-9ebac64fc565
Add DMTCP header to checkpoint images.

The header stores information related to process tree. Earlier,
dmtcp_restart was relying on filename to guess the unique-pid of the
process. This failed if the filename was changed. By putting information
into the header for DMTCP, we eliminate the dependency on ckpt filenames.

git-svn-id: svn://svn.code.sf.net/p/dmtcp/code/trunk@1952 ba6dc0ae-232f-0410-883f-9ebac64fc565