Skip to content

Commit

Permalink
lib/display: issue warning on GRASS_NOTIFY command failure (#2705)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Dec 26, 2022
1 parent 10bb1d2 commit 84b0134
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/display/r_raster.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ void D_close_driver(void)

COM_Graph_close();

if (cmd)
system(cmd);
if (cmd && system(cmd) == -1)
G_warning(_("GRASS_NOTIFY command <%s> failed"), cmd);
}

/*!
Expand Down

0 comments on commit 84b0134

Please sign in to comment.