Subject UDF drops connection
Author Nick Upson
(1.5.3 on fedora core 5)

I have the following udf in C, which works fine when the commandline
passed is valid e.g. 'cp /etc/passwd /tmp/1' but if something is wrong
say I mistype it and pass 'Zcp /etc/passwd /tmp/1', the connection
drops

here is the C

int local_system(char *command)
{
int ret;

ret = system(command);
return (ret);
}

the definition in the database

DECLARE EXTERNAL FUNCTION local_system
CSTRING(240)
RETURNS INTEGER BY VALUE
ENTRY_POINT 'local_system'
MODULE_NAME 'my_udf';

called from within an SP as

ret = local_system('commandline');

(ret defined as integer)