]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
added comment about why the rename() call is safe
authormortenp <none@none>
Tue, 18 May 2004 17:02:20 +0000 (03:02 +1000)
committermortenp <none@none>
Tue, 18 May 2004 17:02:20 +0000 (03:02 +1000)
src/mlmmj-send.c

index 6622ea63dd99374b5271502920d2d5972fda3276..01bfe5f418c0112bea5770dee0a4cbdd88959cfc 100644 (file)
@@ -433,6 +433,11 @@ int main(int argc, char **argv)
        }
        
        if(listctrl[0] != '1' && listctrl[0] != '2') {
+               /* It is safe to rename() the mail file at this point, because
+                  the child processes (who might still be running) inhirit a
+                  handle to the open file, so they don't care if it is moved
+                  or deleted. */
+
                /* The mail now goes to the archive */
                rename(mailfilename, archivefilename);