]> diplodocus.org Git - nmh/blobdiff - sbr/context_save.c
Document snprintb() a bit.
[nmh] / sbr / context_save.c
index 4ee40ca81d9dae4b6749e18d252a0d5457ad6caa..5224af4ce403a7a390c2246fd3d8db82064949e6 100644 (file)
@@ -41,16 +41,16 @@ context_save (void)
     sigaddset (&set, SIGINT);
     sigaddset (&set, SIGQUIT);
     sigaddset (&set, SIGTERM);
     sigaddset (&set, SIGINT);
     sigaddset (&set, SIGQUIT);
     sigaddset (&set, SIGTERM);
-    SIGPROCMASK (SIG_BLOCK, &set, &oset);
+    sigprocmask (SIG_BLOCK, &set, &oset);
 
 
-    if (!(out = lkfopen (ctxpath, "w")))
+    if (!(out = lkfopendata (ctxpath, "w")))
        adios (ctxpath, "unable to write");
     for (np = m_defs; np; np = np->n_next)
        if (np->n_context)
            fprintf (out, "%s: %s\n", np->n_name, np->n_field);
        adios (ctxpath, "unable to write");
     for (np = m_defs; np; np = np->n_next)
        if (np->n_context)
            fprintf (out, "%s: %s\n", np->n_name, np->n_field);
-    lkfclose (out, ctxpath);
+    lkfclosedata (out, ctxpath);
 
 
-    SIGPROCMASK (SIG_SETMASK, &oset, &set); /* reset the signal mask */
+    sigprocmask (SIG_SETMASK, &oset, &set); /* reset the signal mask */
 
     if (action == 0)
        _exit (0);              /* we are child, time to die */
 
     if (action == 0)
        _exit (0);              /* we are child, time to die */