Mailing List
Home
Forum Home
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Subject: Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Subject: Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Subject: Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Subject: Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Subject: Flash Racing
Subject: MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
system calls failing

system calls failing

2007-04-19       - By Valnir

 Back
Reply:     1     2     3     4     5     6     7     8     9  

Hello again. I'm having another interesting error since we moved our game to
an in-house server. Any system calls we make (pfile backup, etc) are all
failing with a error of -1. Does anyone have any idea why this would be
happening? Could it have anything to do with the different GCC version? The
new server is running GCC 4.1.1 and everything seems to compile fine, but I
don't know if there's options that are disabled or what the problem is. Any
guidance would be appreciated.

-Valnir

/* code block */
bool pfile_backup ( void )
{
   char cmd[MSL];
   int i, errLevel;

   for ( i = 0; i < 4; i++ )
   {
       switch ( i )
       {
           case 0:
               sprintf( cmd, "mv -uf %s*.gz %s", BACKUP_DIR, BACKOLD_DIR );
               break;
           case 1:
               sprintf( cmd, "rm -f %s*", BACKUP_DIR );
               break;
           case 2:
               sprintf( cmd, "cp -ufp %s* %s", PLAYER_DIR, BACKUP_DIR );
               break;
           case 3:
               sprintf( cmd, "gzip %s*", BACKUP_DIR );
               break;
       }

       if ( ( errLevel = system( cmd ) ) != 0 )
       {
           char buf[MSL];

           bug( "NON-ZERO returned. Please check log for errors.", 0 );
           wiznet("ERROR: System returned an error during pfile backup.",
               NULL,NULL,WIZ_SECURE,0,CREATOR);
           sprintf( buf, "ERROR: Failure occured at \"%s\" with error %d",
               cmd, errLevel );
           wiznet(buf,NULL,NULL,WIZ_SECURE,0,CREATOR);
           return FALSE;
       }
   }

   return TRUE;
}

/* Game Output */
47665/47665hp 21571/21571m [-332]     8019 > pback
Backing up files now...
WizNET: [9:04] ERROR: System returned an error during pfile backup.
WizNET: [9:04] ERROR: Failure occured at "mv -uf
../../backup/v5.1/player/*.gz ../../backup/v5.1/player_old/" with error -1
Backup failed!!


--
ROM mailing list
ROM@(protected)
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom