tcope with unix ORCLOSE - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 97e85ebf111b332229ad3698e48b635939543a19
 (DIR) parent 5bae51dd93cd71c9a6a2b2fd4e9cdff5a2755c50
 (HTM) Author: rsc <devnull@localhost>
       Date:   Thu, 27 Jan 2005 20:55:51 +0000
       
       cope with unix ORCLOSE
       
       Diffstat:
         M src/cmd/acme/rows.c                 |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/cmd/acme/rows.c b/src/cmd/acme/rows.c
       t@@ -669,7 +669,7 @@ rowload(Row *row, char *file, int initing)
                        if(ndumped >= 0){
                                /* simplest thing is to put it in a file and load that */
                                sprint(buf, "/tmp/d%d.%.4sacme", getpid(), getuser());
       -                        fd = create(buf, OWRITE|ORCLOSE, 0600);
       +                        fd = create(buf, OWRITE, 0600);
                                if(fd < 0){
                                        free(r);
                                        warning(nil, "can't create temp file: %r\n");
       t@@ -693,6 +693,7 @@ rowload(Row *row, char *file, int initing)
                                Bterm(bout);
                                free(bout);
                                textload(&w->body, 0, buf, 1);
       +                        remove(buf);
                                close(fd);
                                w->body.file->mod = TRUE;
                                for(n=0; n<w->body.file->ntext; n++)