diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-26 19:44:00 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-26 19:44:00 +0000 |
commit | d73cbd4c778f408ce3e06c57ad6418b99e2b9c51 (patch) | |
tree | 7e0eccf71218102b49424879e1ff6d8bf5ae05af /src/map/chrif.c | |
parent | 23180e04bdb7a2dfb95da6fb6ab0026fb4ea8b0d (diff) | |
download | hercules-d73cbd4c778f408ce3e06c57ad6418b99e2b9c51.tar.gz hercules-d73cbd4c778f408ce3e06c57ad6418b99e2b9c51.tar.bz2 hercules-d73cbd4c778f408ce3e06c57ad6418b99e2b9c51.tar.xz hercules-d73cbd4c778f408ce3e06c57ad6418b99e2b9c51.zip |
updates
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@793 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 236590ff3..353533561 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -943,6 +943,21 @@ int chrif_char_offline(struct map_session_data *sd) * Tell char-server to reset all chars offline [Wizputer] *----------------------------------------- */ +int chrif_flush_fifo(void) { + if (char_fd < 1) + return -1; + + set_nonblocking(char_fd, 0); + flush_fifos(); + set_nonblocking(char_fd, 1); + + return 0; +} + +/*========================================= + * Tell char-server to reset all chars offline [Wizputer] + *----------------------------------------- + */ int chrif_char_reset_offline(void) { if (char_fd < 1) return -1; |