X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Flock_file.c;h=bdce7bbb563b2ab10342feb0afd766645aa495bf;hp=d15c93957de69944609479ebdb1e06790d050066;hb=a2ca51e05aaad418d652ce36f232a9076b3b2d08;hpb=b3628819b4ab903269cd83cc68e453b13534346c diff --git a/sbr/lock_file.c b/sbr/lock_file.c index d15c939..bdce7bb 100644 --- a/sbr/lock_file.c +++ b/sbr/lock_file.c @@ -15,9 +15,11 @@ ** Ruud de Rooij Sun, 28 Mar 1999 15:34:03 +0200 */ +#include #include #include #include +#include #ifdef HAVE_SYS_TIME_H # include @@ -429,8 +431,10 @@ lockit(struct lockinfo *li) curlock = li->curlock; tmplock = li->tmplock; - if ((fd = mkstemp(tmplock)) == -1) + if ((fd = mkstemp(tmplock)) == -1) { + advise(NULL, "unable to create temporary file in %s", tmplock); return -1; + } #if 0 /* write our process id into lock file */