mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-09 21:20:50 +02:00
wait -n' notifies on a job it returns; in posix mode, wait' defers notification on a reaped pid unless the shell is interactive, as posix now specifies
This commit is contained in:
@@ -647,6 +647,7 @@ history_truncate_file (const char *fname, int lines)
|
||||
truncate_write:
|
||||
tempname = history_tempfile (filename);
|
||||
|
||||
rv = 0;
|
||||
if ((file = open (tempname, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0600)) != -1)
|
||||
{
|
||||
if (write (file, bp, chars_read - (bp - buffer)) < 0)
|
||||
|
||||
Reference in New Issue
Block a user